<%@ taglib prefix="uthink" uri="/WEB-INF/tld/shiros.tld"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet"
	type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet"
	type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>用户信息</title>
<style type="text/css">
textarea {
	resize: none;
	width: 400px;
	height: 100px;
}
</style>
</head>
<body>
	<div class="pd-20">
		<form id="dataform" class="form form-horizontal">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">昵称：</label>
				<div class="formControls col-xs-8 col-sm-5">${homePage.nick_name}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">头像：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<img width="100" height="100"
						src="${homePage.head_img}" />
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">性别：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<c:choose>
						<c:when test="${homePage.sex==1}">
							男
						</c:when>
						<c:when test="${homePage.sex==0}">
							女
						</c:when>
						<c:otherwise>
						</c:otherwise>
					</c:choose>
				</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">生日：</label>
				<div class="formControls col-xs-8 col-sm-5">${homePage.birthday}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">首媒号：</label>
				<div class="formControls col-xs-8 col-sm-5">${homePage.sm_code}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">专属客服工号：</label>
				<div class="formControls col-xs-8 col-sm-5">${homePage.serviceNo}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">地址：</label>
				<div class="formControls col-xs-8 col-sm-5">${homePage.address}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">推荐的企业主：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<c:forEach items="${homePage.entre_list}" var="entre">
						<div
							style="text-align: center; float: left; margin-right: 20px; margin-bottom: 20px;">
							<img width="80" height="80"
								src="${entre.head_img}" /><br />
							${entre.member_name}
						</div>
					</c:forEach>
				</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">邀请的合伙人：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<c:forEach items="${homePage.partner_list}" var="partner">
						<div
							style="text-align: center; float: left; margin-right: 20px; margin-bottom: 20px;">
							<img width="80" height="80"
								src="${partner.head_img}" /><br />
							${partner.member_name}
						</div>
					</c:forEach>
				</div>
			</div>

			<div class="row cl">
				<input type="hidden" id="user_Id" value="${apiT_member.c_id}">
				<label class="form-label col-xs-4 col-sm-3">账户余额：</label>
				<div class="formControls col-xs-7 col-sm-8">
					<input type="text" class="input-text" id="cmoney" value="${apiT_member.c_money}">
				</div>
				<div class="formControls col-xs-1 col-sm-1">
					<button type="button" class="btn btn-primary radius" onclick="updatemoney()">更新余额</button>
				</div>
			</div>

		</form>
	</div>
	<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
	<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="lib/icheck/jquery.icheck.min.js"></script>
	<script type="text/javascript"
		src="lib/Validform/5.3.2/Validform.min.js"></script>
	<script type="text/javascript"
		src="lib/webuploader/0.1.5/webuploader.min.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/ueditor.config.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/ueditor.all.min.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript" src="js/H-ui.js"></script>
	<script type="text/javascript" src="js/H-ui.admin.js"></script>
	<script type="text/javascript">
		function updatemoney(){
			$.ajax({
				type:"post",
				url: "<%=basePath%>backstage/update_member_money",
				data : "money="+$("#cmoney").val()+"&user_id="+$("#user_Id").val(),
				success : function(msg) {
					var info = eval('(' + msg + ')');
					if (info.error == "0000") {
						alert("操作成功");
					} else {
						alert("操作失败");
					}
				}
			})
		}
	</script>
</body>
</html>

